//
//  GolbalDefine.h
//  Portal3dNav
//
//  Created by th-apple01 on 13-10-28.
//  Copyright (c) 2013年 th-apple01. All rights reserved.
//

#import <Foundation/Foundation.h>

//导航条字体大小设置
#define NAV_UIFONT [UIFont systemFontOfSize:18]
//导航条字体颜色设置
#define NAV_UIColor [UIColor whiteColor]

//适配IOS 7
#define IOS7_OR_LATER   ([[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending)

//屏幕的宽度
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)

//屏幕的高度
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)

//NSBundle读取图片，第一个参数为文件名，第二个参数为类型
#define LOADIMAGE(file,ext) [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]pathForResource:file ofType:ext]]

//颜色色值
#define RGB(r,g,b,al) [UIColor colorWithRed:(float)r/255 green:(float)g/255 blue:(float)b/255 alpha:al]